home *** CD-ROM | disk | FTP | other *** search
- Sorry all for the delay in replying... PC hassles...
-
- At 10:18 AM 9/9/96 +0200, Johan Klockars wrote:
- >I spent a couple of hours yesterday working on the drawing routines for
- >GEM-DEU and managed to increase the speed quite a lot.
-
- Yep, it looks good. :)
-
- >Replacing (almost) all the floating point calculations with fixed point
- >code made the general line drawing and especially the vertex mode (which
- >used a floating point square root) a lot faster.
- >A trivial rejection test for lines/circles outside the displayed part of
-
- Yes, that does sound like a good idea...
-
- >the map means that scrolling through a zoomed map by dragging the sliders
- >(if you're using an AES that supports it) now works very well.
-
- Hehe. I'll have to try this... :)
-
- >Some other things that I'll look into later are:
- >- Redrawing only the necessary parts.
- > For scrolling and minor updates this should increase the speed a _lot_.
- > Naturally, the rectangle list should be used as well.
-
- This would be nice, as I've got non-modal windowed dialogues in the latest
- version, yet the map draws all over it at the moment...
-
- >- Blitting small circles etc instead of drawing them.
- > Compare the drawing speed between the 'Things' mode which draws objects
- > as circles and the others that draw them as two crossing lines...
- >- Using special code for horizontal and vertical lines.
- >- Presorting coordinates to make the clipping faster.
- >- Precalculating screen coordinates.
- >- Off screen drawing with specialized routines.
-
- Yep, all seem like good ideas to me...
-
- >I'd appreciate if some of you who're used to working with GEM-DEU could
- >take a look at the test version, testdeu.lzh, that I've uploaded to my site.
- >I haven't noticed any problems myself, but I've only tested it a little.
-
- I've only had a very quick look, but it looks great.
-
- >Please, note that this test version is not a full GEM-DEU.
- >Just about the only thing that works is viewing a map in the different modes.
-
- And select, in all modes except line, IIRC...
-
- Anthony
-
-